search word

Tells MicroWorlds to search and select (highlight) the word in the current text box. Nothing happens if the word is not found. Search starts searching at the cursor position. Use unselect to undo the highlighting effect of search. See found? and unselect.

Example: 

The following procedure will replace all occurrences of a word by another word in the current text box. Make sure you place the cursor at the top of the text box before trying the procedure:

to replaceall :this :bythat
search :this
if not found? [stop]
insert :bythat
replaceall :this :bythat
end